treeview: Set background on the widget's window
authorCarlos Garnacho <carlosg@gnome.org>
Thu, 12 Jan 2012 02:00:45 +0000 (03:00 +0100)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 24 Feb 2012 03:26:52 +0000 (22:26 -0500)
The widget window is usually covered by the bin_window.
Its background color will become relevant when we introduce
kinetic scrolling with overshooting.

gtk/gtktreeview.c

index c3138a64b8535c3353014dbccf7d485a728c4ac0..1d12d94e15abc5385a5d84100cea4aef62b5b4c2 100644 (file)
@@ -2193,6 +2193,7 @@ gtk_tree_view_ensure_background (GtkTreeView *tree_view)
   gtk_style_context_save (context);
   gtk_style_context_add_class (context, GTK_STYLE_CLASS_VIEW);
   gtk_style_context_set_background (context, tree_view->priv->bin_window);
+  gtk_style_context_set_background (context, gtk_widget_get_window (GTK_WIDGET (tree_view)));
   gtk_style_context_restore (context);
 
   gtk_style_context_set_background (context, tree_view->priv->header_window);